class WelcomeController < ApplicationController

  before_filter :login_required, :only => [:home]

  def index
    @page_title = "Spendy!"

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { head :ok }
      format.iphone do # index.iphone.erb
        @panel_title = @page_title
        render :layout => false if @welcome_page
        @welcome_page = true
      end
    end
  end

  # GET /welcome/home
  # GET /welcome/home.xml
  def home
    @page_title = "Spendy! Home"

    respond_to do |format|
      format.html # home.html.erb
      format.xml  { head :ok }
      format.iphone do # home.iphone.erb
        @panel_title = @page_title
        render :layout => false
      end
    end
  end

end